{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% block title %}EasyOPS - Tomcat{% endblock %}
{% block page_content %}
    <table class="table table-bordered table-hover">
        <thead>
            <tr>
                <th>id</th>
                <th>应用名称</th>
                <th>程序目录</th>
                <th>程序端口</th>
                <th>服务器</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            {% for tomcat in tomcatList %}
                <tr id="t{{ tomcat.id }}">
                    <td>
                        <input type="checkbox" id="{{ tomcat.id }}" name="tcclient" />
                    </td>
                    <td> {{ tomcat.app_name }} </td>
                    <td>{{ tomcat.app_dir }}</td>
                    <td>{{ tomcat.http_port }}</td>
                    <td>{{ tomcat.host.hostname }}/{{ tomcat.host.IP }}</td>
                    <td><a href="{{ url_for('application.view',category='tomcat',id=tomcat.id) }}" class="btn btn-default">查看</a> <a href="{{ url_for('application.edit_tomcat', id=tomcat.id) }}" class="btn btn-info">修改 </a> <a href="{{ url_for('application.delete',category='tomcat',id=tomcat.id) }}" class="btn btn-danger">删除</a></td>
                </tr>
            {% endfor %}
            <tr id="tlast">
                <td>
                    <input type="radio" name="optionsRadios" id="optionsRadios1"   onclick="allCheck('tcclient', true)" value="全选"/>
                    全选
                    <input type="radio" name="optionsRadios" id="optionsRadios2" onclick="allCheck('tcclient', false)" value="取消"/>取消
                    <input type="radio" name="optionsRadios" id="optionsRadios3" onclick="reserveCheck('tcclient')" value="反选"/>反选

                </td>
                <td> </td>
                <td></td>
                <td></td>
                <td></td>
                <td><a href="{{ url_for('application.add_tomcat')}}" class="btn btn-default">添加</a> </td>
            </tr>
        </tbody>
    </table>
{% endblock %}
